<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ attribute name="formPath" required="true" rtexprvalue="true"%>
<%@ attribute name="labelCode" required="true" rtexprvalue="true"%>
<%@ attribute name="styleClass" required="false" rtexprvalue="true"%>
<%@ attribute name="readOnly" required="false" rtexprvalue="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<form:label for="${formPath}" path="${formPath}"
	cssClass="editInputLabel">
	<fmt:message key="${labelCode}" />
</form:label>
<br />
<jsp:doBody />
<c:if test="${readOnly == null || !readOnly}">
	<form:errors path="${formPath}" cssClass="error" />
</c:if>